package com.vcredit.creditcat.service;

import com.vcredit.creditcat.model.LoginLog;
import com.vcredit.creditcat.persistence.base.LoginLogMapper;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 
 **/
@Service
public class LoginLogService {
	@Autowired
	private LoginLogMapper mapper;

	public void insert(LoginLog obj) {
		mapper.insert(obj);
	}

	public void update(LoginLog obj) {
		mapper.update(obj);
	}

	public List<LoginLog> findAll() {
		return mapper.findAll();
	}
	
	

	@SuppressWarnings("unused")
	private List<LoginLog> find(LoginLog obj) {
		return mapper.find(obj);
	}

	public LoginLog findByAccountId(Long accountId) {
		return mapper.findByAccountId(accountId);
	}
	
	public List<LoginLog> findCheckLogin(String token) {
		return mapper.findCheckLogin(token);
	}
}